package cn.ilikes.tools.nosql.jpa;

import java.util.Map;

import javax.persistence.EntityManagerFactory;
import javax.persistence.spi.PersistenceUnitInfo;
import javax.persistence.spi.ProviderUtil;

import org.slf4j.Logger;

import cn.ilikes.tools.logs.Loggerfactory;

public class JPASQLPersistenceProviderBase {

	private Logger logger = Loggerfactory.instance(AbJPASQLPersistenceProvider.class);

	public ProviderUtil getProviderUtil() {
		Loggerfactory.infoDebug(logger, "this AbJPASQLPersistenceProvider. getProviderUtil() not  work !  ");
		return null;
	}

	@SuppressWarnings("unchecked")
	public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo arg0, Map arg1) {
		Loggerfactory.infoDebug(logger, "this AbJPASQLPersistenceProvider. createContainerEntityManagerFactory() not  work !  ");
		throw new JPASQLNoSupportException("this AbJPASQLPersistenceProvider. createContainerEntityManagerFactory() not  work !  ");
	}
}
